#ifndef SIMULATORCMD_H
#define SIMULATORCMD_H

#include <QString>

/**
 * @brief The SimulatorCmd class
 * 对模拟命令的封装
 */
class SimulatorCmd
{
public:
    //是否循环标识
    typedef enum {CIRCLENO = 0, CIRCLEYES} CIRCLE;
    //命令标识
    typedef enum {TEMPERATURE = 0x01, NETWORKBUILD, NETWORKTEST} CMDID;
    //节点类型 C协调器　Ｅ终端节点　R路由器
    typedef enum {C = 'C', E = 'E' ,R = 'R'} NODEFLAG;

    SimulatorCmd();

    int m_nDataLenght;//数据长度
    QString m_qstrSendNetWorkID;//发送节点的网络号
    QString m_qstrReceiveNetWorkID;//接收的网络号
    QString m_qstrParentNetWorkID;//发送节点的父节点
    QString m_qstrContext;//命令内容
    int m_nT;//如果循环,周期时长
    int m_nCurrentSec;//当前的时长
    CIRCLE m_circleFlag;//是否循环
    CMDID m_cmdID;//命令ＩＤ
    NODEFLAG m_nodeFlag;//节点内行
    int m_DeviceName;//设备名

};

#endif // SIMULATORCMD_H
